import request from "@/utils/request2";
//新增设备处理
export function InsertLedger(map) {
  return request({
    url: "/ledger/insertLedger",
    method: "POST",
    data: JSON.stringify(map),
    headers: {
      "Content-Type": "application/json",
    },
  });
}

export function SelectLedger(ledger) {
  return request({
    url: "/ledger/selectLedger",
    method: "GET",
    params: ledger
  });
}

export function SelectLedger2(pageNum, pageSize) {
  return request({
    url: "/ledger/selectLedger?pageNum=" + pageNum + "&pageSize=" + pageSize,
    method: "GET",
  });
}


//新增普通入库
export function InsertNormalWarehousing(map) {
  return request({
    url: "/normalwarehousing/insertru",
    method: "POST",
    data: JSON.stringify(map),
    headers: {
      "Content-Type": "application/json",
    },
  });
}
//删除入库
export function DeleteNormalWarehousing(list) {
  return request({
    url: "/normalwarehousing/deleteru",
    method: "POST",
    data: JSON.stringify(list),
    headers: {
      "Content-Type": "application/json",
    },
  });
}

//查看所有入库
export function SelectNormalWarehousing(normalWarehousing) {
  return request({
    url: "/normalwarehousing/selectru",
    method: "GET",
    params: normalWarehousing
  });
}
export function SelectNormalWarehousing2(pageNum, pageSize) {
  return request({
    url: "/normalwarehousing/selectru?pageNum=" + pageNum + "&pageSize=" + pageSize,
    method: "GET",
  });
}

//查看入库情况
export function SelectNormalWarehousingcha(normalWarehousing) {
  return request({
    url: "/normalwarehousing/selectrudan",
    method: "GET",
    params: normalWarehousing
  });
}
